class Student {
    constructor(name, age) {
        this.name = name;
        this.age = age;
    }
    hello() {
        console.log(`Hello, my name is ${this.name}`);
    }
}

const jack = new Student('Jack', 18);
console.log(jack.name); // 输出：Jack
console.log(jack.age); // 输出：18
jack.hello(); // 输出：Hello, my name is Jack
console.log(jack.__proto__ == Student.prototype ); //
console.log(Student.prototype.__proto__ == Object.prototype ); //